cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDART 17)

# set project name
project(ellie VERSION 0.0.1)

# set project sources
set(PROJECT_SOURCES
	main.cpp
	
	src/utils.cpp
    src/itemslist.cpp
	src/ui/mainwindow.cpp

	include/utils.h
    include/itemslist.h
    include/ui/mainwindow.h

	libs/mini/ini.h
)

# add executable
add_executable(ellie ${PROJECT_SOURCES})

set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)

include_directories(${CURSES_INCLUDE_DIR})

target_link_libraries(ellie ${CURSES_LIBRARIES})

target_include_directories(ellie PUBLIC
                           "${PROJECT_BINARY_DIR}"
                           )
